package com.orion.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2021/10/25
 */
@RestController
@RequestMapping("/apollo")
public class ApolloController {

    @Value("${code.phone}")
    private String phoneVal;

    @Value("${code.car}")
    private String carVal;

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/dymChange")
    public String dymChange() {
        return "phone = " + phoneVal + " , car = " + carVal + " , port = " + port;
    }
}
